﻿package com.et.ball.module {
	import flash.display.Sprite;
	public class Ball extends Sprite {
		private var _vx:Number=0;
		private var _vy:Number=0;
		private var _mass:Number;
		
		private var _radius:Number;
		private var _color:uint;

		public function Ball(radius:Number=40,color:uint=0xff0000) {
			this._radius=radius;
			this._color=color;
			init();
		}
		public function get Radius():Number {
			return _radius;
		}
		public function get vx():Number {
			return _vx;
		}
		public function set vx(vx:Number):void {
			_vx=vx;
		}
		public function get vy():Number {
			return _vy;
		}
		public function set vy(vy:Number):void {
			_vy=vy;
		}
		public function get mass():Number {
			return _mass;
		}
		public function set mass(m:Number):void {
			_mass=m;
		}
		public function init():void {
			graphics.beginFill(_color);
			graphics.drawCircle(0,0,_radius);
			graphics.endFill();
		}
	}
}